package org.jeecg.modules.inspection.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.common.aspect.annotation.Dict;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @Description: 巡更人
 * @Author: jeecg-boot
 * @Date:   2019-09-20
 * @Version: V1.0
 */
@Data
@TableName("set_inspection_user")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="set_inspection_user对象", description="巡更人")
public class InspectionUser {
    
	/**id*/
	@TableId(type = IdType.UUID)
    @ApiModelProperty(value = "id")
	private String id;
	/**巡检人ID*/
    @ApiModelProperty(value = "巡检人ID")
	@Dict(dicCode ="id",dicText ="realname",dictTable = "sys_user")
	private String userId;
	/**巡检人姓名*/
	@Excel(name = "巡检人姓名", width = 15)
    @ApiModelProperty(value = "巡检人姓名")
	private String userName;
	/**巡检线路ID*/
    @ApiModelProperty(value = "巡检线路ID")
	@Dict(dictTable ="set_inspection_line",dicText ="name",dicCode ="id")
	private String lineId;
	/**tenantId*/
    @ApiModelProperty(value = "tenantId")
	private String tenantId;
	/**管理处id*/
    @ApiModelProperty(value = "管理处id")
	@Dict(dictTable ="sys_depart" ,dicText ="depart_name" ,dicCode = "id")
	private String officeId;
	/**updateTime*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "startTime")
	private Date startTime;
	/**updateTime*/
	@Excel(name = "下次生成巡检计划时间", width = 20, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "nextTime")
	private Date nextTime;
	/**createTime*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "createTime")
	private Date createTime;
	/**createBy*/
	@Excel(name = "创建人", width = 15,dicCode = "id",dictTable = "sys_user",dicText = "realname")
    @ApiModelProperty(value = "createBy")
	private String createBy;
	/**updateTime*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "updateTime")
	private Date updateTime;
	/**updateBy*/
    @ApiModelProperty(value = "updateBy")
	private String updateBy;
	/**delFlag*/
    @ApiModelProperty(value = "delFlag")
	private Integer delFlag;


	@TableField(exist = false)
	private Integer period;

	@TableField(exist = false)
	private String periodType;

	@TableField(exist = false)
	private Integer type;
}
